﻿<html>
<title>thu</title>
<head>
<script type="text/javascript">
function Load1(){
if(window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET","thu.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
var x=xmlDoc.getElementsByTagName("user1");
txt="";
for(i=0;i<x.length;i++)
{
name=(x[i].getElementsByTagName("user")[0].childNodes[0].nodeValue);
ema=(x[i].getElementsByTagName("email")[0].childNodes[0].nodeValue);
come=(x[i].getElementsByTagName("com")[0].childNodes[0].nodeValue);
txt += name + "<br />" + "<a href='mailto:" + ema + "'>" + ema + "</a><br />" + come+ "<br /><br/>";
document.getElementById("show").innerHTML=txt;
}}</script>
</head>
<fieldset>
<body onload="Load1()">
<div>
<div><p>Name:
 <input type="text"/></p></div>
<div><p>Email:
 <input type="text"/></p></div>
 <div><p>Comment:</p>
 <textarea type="text" cols="50" rows="2"></textarea><br/></div>
</div>
<div id="show"></div>
</fieldset>
</body>
</html>